<template>
  <view class="qy-setting-home">
    <view class="van-cell" @click="toPage('/pages/signin/privacy')">隐私政策</view>
    <view class="van-cell" @click="toPage('/pages/signin/serve')">用户协议</view>
    <!-- <view class="van-cell">联系我们</view> -->
    <view class="van-cell" @click="toPage(1)">账号注销</view>
    <view class="logout-btn van-cell" @click="toPage('/pages/signin/signin')">退出登录</view>
  </view>
</template>

<script setup>
import {getCurrentInstance} from 'vue';
import {sm2} from 'sm-crypto';
import {MS2_PUBLICKEY} from '@/assets/js/constant';
const {$toast} = getCurrentInstance().proxy;
const toPage = (val) => {
	if(val==1){
		$toast.success("注销成功")
	}else{
		uni.navigateTo({
			url:val
		})
	}
};

const onClickLeft = ()=>{
  uni.navigateBack({ delta: 1 })
}

</script>

<style lang="scss" scoped>
.qy-setting-home {
  background: #F6F6F6;
  height: 100%;

  .van-cell {
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #fff;
    font-size: 16px;
    border-bottom: 1px solid #F6F6F6;
  }

  .logout-btn {
    width: 100%;
    border: 0;
    height: 60px;
    font-size: 16px;
    background: #fff;
  }
}
</style>
